package org.advanced;

/**
 * @author John.zhang
 * @version Id: RpcServerApp, v 1.0 2020/12/14 17:19 ZhiYong Exp $
 */

public class NioRpcServerApp {
    public static void main(String[] args) {
        IHelloService helloService = new HelloServiceImpl();
        RpcProxyServer rpcProxyServer = new RpcProxyServer(helloService,8080);
        //一个线程就可以处理很多个通道
        new Thread(rpcProxyServer).start();
    }
}
